package com.px.ioc;

import com.px.ioc.service.HumanSericeImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Beans.xml");
        HumanSericeImpl humanserviceimpl = (HumanSericeImpl) applicationContext.getBean("humanserviceimpl");
        humanserviceimpl.putFood();
    }
}
